package main

import "fmt"

type Person struct {
	name string
}

func getPer() *Person {
	return &Person{name: "haha"}
}

func swap(a, b *int) {

	t := *a
	*a = *b
	*b = t
}

func main() {

	a, b := 1, 2
	swap(&a, &b)
	fmt.Println(a, b)

	var p *Person
	p.name = "haha"
	fmt.Println(p.name)
	return
	//p = &Person{name: "aa"}
	fmt.Println(p)

	fmt.Println(getPer())

}
